package com.ate.aoligei;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * @author Ate
 * @description:
 * @date :2020/11/11 16:17
 */
@Entity( nameInDb = "STUDENT")
public class Student {
    @Id(autoincrement = true)
    @Unique
    private Long id;

    @Property(nameInDb = "name")
    private String name;
    @Property(nameInDb = "mark")
    private String mark;
    @Generated(hash = 1164762435)
    public Student(Long id, String name, String mark) {
        this.id = id;
        this.name = name;
        this.mark = mark;
    }
    @Generated(hash = 1556870573)
    public Student() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getMark() {
        return this.mark;
    }
    public void setMark(String mark) {
        this.mark = mark;
    }

}
